<html>
<head>
<title>
{#$title#}
</title>
<meta http-equiv="Content-Type" content="text/HTML; charset=utf-8">
<style type="text/css">
.hello{
	width:800px;
	height:120px;
	border:1px solid #ccc;
	padding:10px;
	text-align:left;
	font-size:24;
	color:#ccc;
}
.msglist{
	width:800px;
	text-align:left;
	padding-top:15px;
	border-bottom:1px solid #ccc;
}
.msg{
	width:800px;

	overflow: hidden;
	padding:10px;
	border-bottom:1px solid #ccc;
	font-size:14px;
	color:#333;
	word-break:break-all;
}
.pages{

	border-bottom:1px solid #ccc;
	font-size:12px;
	color:#333;

}
.msglist a:link {color: #ccc}
.msglist a:visited {color: #ccc}
.msglist a:hover {color: #333}
.msglist a:active {color: #ccc}

.pages a:link {color: #333}
.pages a:visited {color: #333}
.pages a:hover {color: #003300}
.pages a:active {color: #003300}
</style>
</head>

<body>
	<div class="" id="body" style="text-align:center;">
		<div class="hello">Message Board <br /><br />
		<span style="font-size:12px;float:right;">我们已经走得太远，以至于忘记了，为什么而出发。——纪伯伦……</span></div>
		<div class="msglist">
		<span style="font-size:12px;float:left;color:#ccc"><a href="?g=admin" >留言管理</a> 
		<a href="?g=admin&c=setup" >留言设置</a> 
		<a href="?g=login&c=login&a=logout" >退出</a> </span><hr />
		
	{#foreach from=$toPage.result item=msg #}
		<div class="msg">{#$msg.msg_content#}<br />
		<span style="float:right;">{#$msg.msg_time#}</span><br />
		<span style="float:right;"><a href="javascript:if(confirm('确定删除？'))window.location='?g=admin&c=index&a=delMsg&id={#$msg.id#}'">删除</a></span>
		
		</div>
	{#/foreach#}

		
		</div>
		<div class="pages">
		<form action="" method="post" >
		<a href="?p=1" >首页</a>
		<a href="?p={#$toPage.pre#}" >上一页</a>
		共{#$toPage.pages#}页   {#$toPage.page#}/{#$toPage.pages#}页
		<a href="?p={#$toPage.next#}" >下一页</a>
		<a href="?p={#$toPage.pages#}" >最后一页</a>
		
		<label for="select">跳到</label>
		<input type="text" id="select" name="page" size=2/>页
		<input type="submit" value="Go" name="gopage"/>
		</form>
		</div>
		<div class="add">
		<form action="?a=add" method="post">
			 <textarea   cols="80" rows="10" name="content"  onfocus="if (this.value=='你也想留言？那动起鼠标键盘吧！'){ this.value=''}"  onblur="if (this.value==''){ this.value='你也想留言？那动起鼠标键盘吧！'}" >你也想留言？那动起鼠标键盘吧！</textarea>
			<br />
			<input type="submit" value='提交' name="submitadd">
		</form>
		</div>
		
		
	</div>
</body>

</html>
